package org.hertsig.entities;

import com.google.common.collect.ImmutableList;

public class SplitCardCost extends ManaCost {
	private final ManaCost left;
	private final ManaCost right;
	
	public SplitCardCost(ManaCost left, ManaCost right) {
		super(ImmutableList.<ManaSymbol>of());
		this.left = left;
		this.right = right;
	}
	
	@Override
	public int convertedManaCost() {
		return left.convertedManaCost() + right.convertedManaCost();
	}
	
	@Override
	public boolean isWhite() {
		return left.isWhite() || right.isWhite();
	}
	
	@Override
	public boolean isBlue() {
		return left.isBlue() || right.isBlue();
	}
	
	@Override
	public boolean isBlack() {
		return left.isBlack() || right.isBlack();
	}
	
	@Override
	public boolean isRed() {
		return left.isRed() || right.isRed();
	}
	
	@Override
	public boolean isGreen() {
		return left.isGreen() || right.isGreen();
	}
	
	@Override
	public String toString() {
		return left.toString() + " / " + right.toString();
	}
}
